import request from '@/utils/request'

// 获取商品列表
export const goodsList = (params)=>{
    return  request.get('/goods/list',{params})
}

// 添加商品
export const goodsAdd = (data) => {
    return request.post('/goods/add', data)
  }

// 获取商品分类
export const getCategories = (params) => {
    return request.get('/goods/categories', { params })
}
// 商品分类列表
export const catelist = (params)=>{
    return request.get('/goods/catelist',{params})
 }

 export const addcate = (data)=>{
    return request.post('/goods/addcate',data)
 }

 export const delcate = (params)=>{
    return request.get('/goods/delcate',{params})
 }
 export const editcate = (data)=>{
    return request.post('/goods/editcate',data)
 }